<h1>Editing files</h1>

<%= error_messages_for :files %>

<% form_for(:files, :url => files_path(@files), :html => { :method => :put }) do |f| %>
  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>User</b><br />
    <%= f.text_field :user_id %>
  </p>

  <p>
    <b>Project</b><br />
    <%= f.text_field :project_id %>
  </p>

  <p>
    <b>File category</b><br />
    <%= f.text_field :file_category_id %>
  </p>

  <p>
    <b>Message</b><br />
    <%= f.text_field :message_id %>
  </p>

  <p>
    <b>Created at</b><br />
    <%= f.datetime_select :created_at %>
  </p>

  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', files_path(@files) %> |
<%= link_to 'Back', files_path %>